home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BMUG Revelations
/
BMUG Revelations.toast
/
Business
/
Calendars
/
PM Calendar Scripts
/
3 cal Tues-Leap
< prev
next >
Wrap
Text File
|
1992-02-18
|
11KB
|
528 lines
—Leap year starting on Tuesday
new 12
toolbox off
zeropointreset
————————————————————————————————————————————————
—define styles
—define a style for the days of the month
stylebegin “Days”
font “Times”
tabs 7, (right, 0.3i, “ “) (right, 1.4i, “ “) (right, 2.6i, “ “) (right, 3.8i, “ “) (right, 5i, “ “) (right, 6.2i, “ “) (right, 7.4i, “ “)
size 18
paraspace 0i, .7i
leading 72
spaceoptions true, 12, topofcaps 120
paraoptions 1, 0, 0, 0, 0, 0, 0
styleend “Days”
—style for the Names of the months
stylebegin “Months”
font “Times”
alignment center
size 60
typestyle bold
leading auto
paraspace 0i, .55i
spaceoptions true, 12, proportional, 120
paraoptions 1, 0, 1, 0, 1, 0, 0
styleend “Months”
—style for the Week day names
stylebegin “Days of week”
font “Times”
size 12
typestyle bold
typestyle reverse
leading auto
paraspace 0i, 0i
spaceoptions true, 12, proportional, 120
tabs 7, (center, 0.5i, “ “) (center, 1.6i, “ “) (center, 2.8i, “ “) (center, 4i, “ “) (center, 5.2i, “ “) (center, 6.4i, “ “) (center, 7.6i, “ “)
styleend “Days of week”
—style for the days of the previous/next month entries
stylebegin “Small Days”
font “Times”
size 8
leading auto
paraspace 0i, .45i
spaceoptions true, 7, proportional, 120
paraoptions 1, 0, 0, 0, 0, 0, 0
tabs 7, (right, 0.2i, “ “) (right, .4i, “ “) (right, .6i, “ “) (right, .8i, “ “) (right, 1i, “ “) (right, 1.2i, “ “) (right, 1.4i, “ “)
styleend “Small Days”
—style for the Names of the months for the previous/next month entries
stylebegin “Small Months”
font “Times”
alignment center
size 12
leading auto
paraspace 0i, 0.05i
spaceoptions true, 12, proportional, 120
paraoptions 1, 0, 0, 0, 1, 0, 0
styleend “Small Months”
—a working, tempory style used to create text in the calendar. Removed upon completion
stylebegin “temp”
font “Times”
size 4
tabs 7, (right, 0.125i, “ “) (right, 0.25i, “ “) (right, 0.375i, “ “) (right, 0.5i, “ “) (right, 0.625i, “ “) (right, 0.75i, “ “) (right, 0.875i, “ “)
paraspace 0i, 0i
paraoptions 0, 0, 0, 0, 0, 0, 0
styleend “temp”
removestyle “Body text”
removestyle “Caption”
removestyle “Hanging indent”
removestyle “Headline”
removestyle “Subhead 1”
removestyle “Subhead 2”
————————————————————————————————————————————————
—draw Days grid
pageoptions 0 0 — single-sided pages
pagesize 11i 8.5i
pagemargins 2.3i 0.5i 0.5i 0.5i
—draw the 2 lines surrounding a ‘day’
page rm
line 9.5i 2i 10.5i 2i
linestyle onepoint
deselect
line 10.5i 2i 10.5i 2.9i
linestyle fourpoint
selectall
copy
multiplepaste 6 (-1.2i 0i)
selectall
copy
multiplepaste 5 (0i 1i)
deselect
—scratch pad lines
line (0.5i 2i) (2i 2i)
linestyle onepoint
copy
multiplepaste 9 0i, .3i
deselect
—previous month master page items
line (.5i 5.5i) (2i 5.5i)
linestyle onepoint
deselect
line (2i 5.5i) (2i 6.4i)
linestyle fourpoint
—next month master page items
selectextend 2i 5.5i
copy
multiplepaste 1 0i, 1.5i
—draw the Day of the Week box
box (2.3i 1.735i) (10.55i 1.953i)
fillstyle solid
deselect
—type the Day of the Week names
newstory 2.3i 1.835i
style “Days of week”
textenter “ Sunday Monday Tuesday Wednesday Thursday Friday Saturday”
select 2.5i 1.835i
move lefttop (2.3i 1.75i)
——————————————————————————————————————————
—Type the names of the months and days
—each month must have 6 lines for correct spacing in the previous/next month sections
page 1
pagemargins 2.3i .5i 0.5i 0.3i
newstory 2.3i .5i
autoflow 1 — set autoflow on
style “temp”
textenter “January
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
February
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
March
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
April
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
May
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
June
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
July
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
August
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
September
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
October
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
November
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
December
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
“
————————————————————————————————————————————————
—style the text
textcursor -para
style “Days”
textcursor -para
style “Months”
textcursor -para
style “Days”
textcursor -para
style “Months”
textcursor -para
style “Days”
textcursor -para
style “Months”
textcursor -para
style “Days”
textcursor -para
style “Months”
textcursor -para
style “Days”
textcursor -para
style “Months”
textcursor -para
style “Days”
textcursor -para
style “Months”
textcursor -para
style “Days”
textcursor -para
style “Months”
textcursor -para
style “Days”
textcursor -para
style “Months”
textcursor -para
style “Days”
textcursor -para
style “Months”
textcursor -para
style “Days”
textcursor -para
style “Months”
textcursor -para
style “Days”
textcursor -para
style “Months”
textcursor -para
style “Days”
textcursor -para
style “Months”
——————————————————————————————————————————————————
—place the Months and their names
select 3i 3i
move lefttop (2.3i .5i)
placenext
page 2
place 2.3i .5i
—===================================
—create the previous/next month dates
—copy the January of the following year (use May since they begin on the same day of the week) and paste it into a temporary location.
page 5
select 5i 5i
copy
page 1
newstory -2i 1i
paste
select -2i 1i
move lefttop -2i -5i —correct placement so shades can be closed later
—copy and paste the remaining 12 months of the year
select 5i 5i
textedit
selectall
copy
select -2i -5i
textedit
paste
—copy and paste December of the previous year (use March since they begin on the same day of the week)
page 3
select 5i 5i
copy
page 1
select -2i -5i
textedit
paste
selectall
typestyle normal
style “temp” —temporary style so that all the text will fit into the pasteboard space available.
—======================================================
—copy, cut and paste these months into the correct order so that the previous and next month can be displayed for each month.
textcursor -story
textselect +para
textenter “December
“ —correct name of month (we pasted in March, correct to December)
textcursor +para
textselect +para
textselect +para
cut — january
textcursor +para
textcursor +para
paste
textcursor -para
textcursor -para
textselect -para
textselect -para
copy —februrary
textcursor +para
textcursor +para
textcursor +para
textcursor +para
paste
textcursor -para
textcursor -para
textselect -para
textselect -para
copy —march
textcursor +para
textcursor +para
textcursor +para
textcursor +para
paste
textcursor -para
textcursor -para
textselect -para
textselect -para
copy —april
textcursor +para
textcursor +para
textcursor +para
textcursor +para
paste
textcursor -para
textcursor -para
textselect -para
textselect -para
copy —may
textcursor +para
textcursor +para
textcursor +para
textcursor +para
paste
textcursor -para
textcursor -para
textselect -para
textselect -para
copy —june
textcursor +para
textcursor +para
textcursor +para
textcursor +para
paste
textcursor -para
textcursor -para
textselect -para
textselect -para
copy —july
textcursor +para
textcursor +para
textcursor +para
textcursor +para
paste
textcursor -para
textcursor -para
textselect -para
textselect -para
copy —august
textcursor +para
textcursor +para
textcursor +para
textcursor +para
paste
textcursor -para
textcursor -para
textselect -para
textselect -para
copy —september
textcursor +para
textcursor +para
textcursor +para
textcursor +para
paste
textcursor -para
textcursor -para
textselect -para
textselect -para
copy —october
textcursor +para
textcursor +para
textcursor +para
textcursor +para
paste
textcursor -para
textcursor -para
textselect -para
textselect -para
copy —november
textcursor +para
textcursor +para
textcursor +para
textcursor +para
paste
textselect +para
textenter “January
“ —correct name of month (we pasted in May, correct to January)
————————————————————————————————————————
—apply the correct style for each paragraph
style “Small Days”
textcursor -para
style “Small Months”
textcursor -para
style “Small Days”
textcursor -para
style “Small Months”
textcursor -para
style “Small Days”
textcursor -para
style “Small Months”
textcursor -para
style “Small Days”
textcursor -para
style “Small Months”
textcursor -para
style “Small Days”
textcursor -para
style “Small Months”
textcursor -para
style “Small Days”
textcursor -para
style “Small Months”
textcursor -para
style “Small Days”
textcursor -para
style “Small Months”
textcursor -para
style “Small Days”
textcursor -para
style “Small Months”
textcursor -para
style “Small Days”
textcursor -para
style “Small Months”
textcursor -para
style “Small Days”
textcursor -para
style “Small Months”
textcursor -para
style “Small Days”
textcursor -para
style “Small Months”
textcursor -para
style “Small Days”
textcursor -para
style “Small Months”
textcursor -para
style “Small Days”
textcursor -para
style “Small Months”
textcursor -para
style “Small Days”
textcursor -para
style “Small Months”
textcursor -para
style “Small Days”
textcursor -para
style “Small Months”
textcursor -para
style “Small Days”
textcursor -para
style “Small Months”
textcursor -para
style “Small Days”
textcursor -para
style “Small Months”
textcursor -para
style “Small Days”
textcursor -para
style “Small Months”
textcursor -para
style “Small Days”
textcursor -para
style “Small Months”
textcursor -para
style “Small Days”
textcursor -para
style “Small Months”
textcursor -para
style “Small Days”
textcursor -para
style “Small Months”
textcursor -para
style “Small Days”
textcursor -para
style “Small Months”
textcursor -para
style “Small Days”
textcursor -para
style “Small Months”
textcursor -para
style “Small Days”
textcursor -para
style “Small Months”
textcursor -para
————————————————————————————————————————
—place the previous/next month entries
pagemargins .5i 5.3i 9i 0.5i
select -1i 0i
resize bottom -5i 0 1
—autoflow 1
placenext
place .5i 5.3i
——————————————————————————————————————————————————
—end of routine — clean-up
removestyle “temp”
page 1
autoflow 0
pagemargins 2.3i 0.5i 0.5i 0.5i